<?xml version="1.0" encoding="utf-8"?>

<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:msxsl="urn:schemas-microsoft-com:xslt"
  xmlns:ext="urn:my-scripts"
  exclude-result-prefixes="ext msxsl">

  <xsl:template match="/">
    <MySampleOutput>
      <Date>
        <xsl:value-of select="ext:Today()"/>
      </Date>
      <AnotherDate>
        <xsl:value-of select="ext:WrapAddFiveDays('3/5/2008')"/>
      </AnotherDate>
      <MyDestinationData>
        <xsl:value-of select="MySourceData" />
      </MyDestinationData>
    </MySampleOutput>
  </xsl:template>

  <msxsl:script implements-prefix="ext" language="CSharp">                          
    <msxsl:assembly name="BizTalkXsltDemo.Components, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9e94a5886867ebdc" />
    <msxsl:using namespace="BizTalkXsltDemo.Components" />

    public string Today()
    {
    return DateTime.Now.ToString();
    }

    public string WrapAddFiveDays(string date)
    {
    return XsltScriptHelper.AddFiveDays(date);
    }

  </msxsl:script>

</xsl:stylesheet>
